<template>
  <div>
    <label v-if="user">登录者姓名：{{user.username}}</label>
  </div>
</template>
<style>    body {
}</style>
<script>
  import {mapState} from 'vuex';

  export default {
    name: 'List',
    data() {
      return {}
    },
    computed: mapState(['user']),
  }</script>

